package com.rockcent.mall.lib.repository;

import com.rockcent.mall.lib.domain.MerchantGiftPacketCoupon;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by DK on 16/10/11.
 */
@Repository
public interface MerchantGiftPacketCouponRepository extends JpaRepository<MerchantGiftPacketCoupon, Long>, JpaSpecificationExecutor {
    void deleteByPacketId(Long id);

    List<MerchantGiftPacketCoupon> findByPacketId(Long packetId);
}
